Skip to main content

EMaC Policy Import

Overview

The EMaC Policy Import is a two-step process involving two files: the fleet file and the benefits file. The fleet file is the primary file and must always be processed first. The benefits file is processed second and completes the EMaC policy import. Both files are required for a successful import.

Files Required

  1. emacFleetFile.csv
  2. emacBenefitsFile.csv

File Format

Comma Separated Values - *.csv
Encoding - UTF-8

EMaC Fleet File

Column PositionEMaC Contract FieldMapped ViSN FieldData TypeValidation / FormatMax LengthMandatoryNotes
AAgreement IDPolicy NumberstringRequired50Yes
BReferencePolicy ReferencestringRequired50YesUsed to link the benefits file to the fleet file.
CDealerGroupIdCustomer Account NumberstringSpecial alphanumeric characters allowed50NoIf provided and matched to an existing customer account number in ViSN, the vehicle is mapped to that customer.
DDealerGroupPurchase Location (Group)stringSpecial characters allowed150No
EDealerIDPurchase Location CodestringSpecial characters allowed10No
FDealerNamePurchase Location (Site)stringSpecial characters allowed150No
GCampaignIdIgnored-Not used-NoThis column is ignored during import.
HCampaignNameProduct TypestringSpecial characters allowed100No
ISaleDatePurchase DatedateDDMMYYYY8NoMust be a valid date when provided.
JStartDatePolicy Start DatedateDDMMYYYY8NoMust be a valid date when provided. When multiple rows exist for the same VRM, the row with the latest StartDate is used to populate common fields such as make, customer, driver, and registration details.
KEndDatePolicy End DatedateDDMMYYYY8NoMust be a valid date when provided.
LStatusDescriptionStatus DescriptionstringSpecial characters allowed100No
MTermPolicy TermstringSpecial characters allowed2No
NIsOpenTermOpen EndedstringMust be 1 or 01No1 and 0 are treated as boolean values in the import.
OSalesPersonSales PersonstringSpecial characters allowed150No
PCustomerNameFirst Name of Policy HolderstringSpecial characters allowed150NoEMaC sends this as a single full name string. It is saved as first name.
QAddress1Policy Holder Building Name/NumberstringSpecial characters allowed50No
RAddress2Policy Holder StreetstringSpecial characters allowed100No
SAddress3Policy Holder DistrictstringSpecial characters allowed100No
TAddress4Policy Holder TownstringSpecial characters allowed100No
UAddress5Policy Holder CountystringSpecial characters allowed100No
VPostcodePolicy Holder PostcodestringStandard postcode validation7NoSpaces are removed before validation.
WEmailAddressPolicy Holder Email AddressstringStandard email validation50NoEmail addresses are converted to lowercase.
XTelephoneDayPolicy Holder Phone (Work)stringAlphanumeric characters allowed11No
YTelephoneEvePolicy Holder Phone (Home)stringAlphanumeric characters allowed11No
ZTelephoneMobilePolicy Holder MobilestringAlphanumeric characters allowed11No
AAVehicleMakeVehicle MakestringSpecial characters allowed20No
ABVehicleModelVehicle ModelstringSpecial characters allowed100No
ACRegistrationNumberVRMstringStandard vehicle registration validation10Yes
ADVINVINstringAlphanumeric characters allowed17No
AEDateFirstRegisteredDate of First RegistrationdateDDMMYYYY8NoMust be a valid date when provided.
AFMileageMileagenumberNumeric value30No

EMaC Benefits File

Column PositionEMaC Contract FieldMapped ViSN FieldData TypeValidation / FormatMax LengthMandatoryNotes
AAgreementIDIgnored-Not used-NoThis column is ignored during import.
BReferencePolicy ReferencestringRequired50YesThis is the link between the benefits file and the fleet file.
CAgreementBenefitIdAgreement Benefit IdstringSpecial characters allowed20No
DBenefitIncluded BenefitstringSpecial characters allowed100No
EBenefitTypeIgnored-Not used-NoThis column is ignored during import.
FExclusionDaysIgnored-Not used-NoThis column is ignored during import.
  1. For the BigQuery table flow, see EMaC BigQuery Import Flow.
  2. For scheduler setup, see Creating EMaC Policy Import Schedulers.
  3. For a full operator walkthrough, see Running an EMaC Policy Import End to End.

Key Behaviours

  1. Each row in the fleet file represents a policy.
  2. A vehicle can have multiple policies.
  3. If multiple rows exist for the same VRM, they are combined and imported as a single vehicle with multiple policies.
  4. When multiple rows exist for the same VRM, the row with the latest StartDate is used to populate shared fields such as make, customer, driver, and registration details.
  5. Benefits are linked to the fleet file using Reference.
  6. If multiple benefit rows exist for the same Reference, they are grouped together under that policy.
  7. If an existing policy is not present in the latest EMaC import, it is treated as cancelled during the merge step.
  8. If reimportAll is enabled, all vehicles in the import are re-imported, even if no changes are detected.
  9. If shouldTerminate is enabled, vehicles already imported for EMaC but not present in the supplied fleet file are marked as terminated.

Status: Approved
Category: Protected
Authored By: Hadley on Apr 14, 2026